/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * Telegram Channel: t.me/vlook_markdown
 * email: maxchow@qq.com
 *
 *************************************/

@import "../font";
@import "../color";
@import "../common";

// 主题信息
@themeVer: "V25.0";
@themeName: "vlook-thinking";
@themeDesc: "Thinking";

// 指定字体主题
.applyFontStyle(local);
// .applyFontStyle(sans);
// 指定主题配套的圆角
// .applyThemeRadius(big);
.applyThemeRadius(leaf);
// 文档背景使用图片
.applyDocBgImg(@docBgImgLight_Grid, @docBgImgDark_Grid);

:root {
    --thm-fav-logo-lg: url("");
    --thm-fav-logo-dk: var(--thm-fav-logo-lg);
}

// 主题主色
@theme1: #298BCC;
@theme2: #27C2BD;
@theme3: #FFFFFF;
@theme1Dark: #3395D6;
@theme1Alt: #DDEDF8;
@theme1AltDark: #103751;
@theme2Dark: @theme2;
@theme2Alt: #DDF8F7;
@theme2AltDark: #0D403E;
@theme1Fade: rgba(red(@theme1), green(@theme1), blue(@theme1), @accOpacity);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), @accOpacity);

@themeForeColor: @theme1;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme1;
@themeBgColorFade: fade(@themeBgColor, 50%);
@themeBgColorDark: darken(@themeBgColor, 15%);
@themeBgColorAlt: lighten(@themeBgColor, 45%);

// 标题色
@headerColor: @theme1;
@headerColorDark: @theme1Dark;
// 渐变标题色 h1-h5
// @lgHeaderBg: linear-gradient(135deg, @theme1 25%, @theme2);
// @lgHeaderBgClip: text;
// @lgHeaderColor: transparent;
@lgH1Bg: linear-gradient(135deg, @theme1 25%, @theme2);
@lgH2Bg: @lgH1Bg;
@lgH3Bg: @lgH1Bg;
@lgH4Bg: @lgH1Bg;
@lgH5Bg: @lgH1Bg;
@lgH1BgClip: text;
@lgH2BgClip: @lgH1BgClip;
@lgH3BgClip: @lgH1BgClip;
@lgH4BgClip: @lgH1BgClip;
@lgH5BgClip: @lgH1BgClip;
@lgH1Color: transparent;
@lgH2Color: @lgH1Color;
@lgH3Color: @lgH1Color;
@lgH4Color: @lgH1Color;
@lgH5Color: @lgH1Color;

// 6 级标题前缀内容
@h6BeforeContent: "❖ ";
// @tocHeaderNumColor: @docTextColorLightFade;
@contentHeaderNumColor: @themeBgColorFade;
@headerBackground: linear-gradient(270deg, var(--h-bg-start), var(--h-bg-end));
@multiHeaderBG: @headerBackground;
@headerTextAlign: right;
@headerPadding: 5px 30px 5px 0;
//@headerLetterSpacing: 0;//0.3em;

// 不进行章节自动编号
@vChpAutoNum: "h1{{#none#}},h2{{#none#}},h3{{#none#}},h4{{#none#}},h5{{#none#}}";;
@h1BeforeContent: "";
@h2BeforeContent: "";
@h3BeforeContent: "";
@h4BeforeContent: "";
@h5BeforeContent: "";

@headerBorderRadius: var(--v-r-b) var(--v-r-b-xc);

@h1BorderLeft: 15px solid var(--h-box-shadow);
@h2BorderLeft: 15px solid var(--h-box-shadow);
@h3BorderLeft: 15px solid var(--h-box-shadow);
@h4BorderLeft: 15px solid var(--h-box-shadow);
@h5BorderLeft: 15px solid var(--h-box-shadow);
@h6BorderLeft: 0;
@h1BorderRight: 5px solid var(--h-box-shadow);
@h2BorderRight: 5px solid var(--h-box-shadow);
@h3BorderRight: 5px solid var(--h-box-shadow);
@h4BorderRight: 5px solid var(--h-box-shadow);
@h5BorderRight: 5px solid var(--h-box-shadow);
@h6BorderRight: 0;

@hGap: 5px;
@h1Margin: 3em 0 @hGap 0;
@h2Margin: 3em 0 @hGap 0;
@h3Margin: 2em 0 @hGap 0;
@h4Margin: 2em 0 @hGap 0;
@h5Margin: 1.25em 0 @hGap 0;
@h6Margin: 1em 0 0 0;

// 按钮色
@buttonForeColor: @theme3;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @themeBgColor;
// 文库按钮颜色
@docLibButtonForeColor: @buttonForeColor;
@docLibButtonForeHoverColor: @buttonForeHoverColor;
@docLibButtonBgColor: @buttonBgColor;
// 指定 kbd 按钮风格
.applyKbdRadius(leaf);

// 链接颜色
@aBorderWidth: 2px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 30%);

// 表格边框
@tblBdWidth: 1px;
@tableBorderColor: var(--d-fc-a);
@tableBorderWidth: 0;
@tableBorderLeftWidth: 0;
@tableBorderRightWidth: 0;
@tableBorderTopWidth: 0;
@tableBorderBottomWidth: 0;
@tableThBorderRightWidth: 0;
@tableTdBorderRightWidth: 0;
// 表格行 hover
@tableTrHoverBg: fade(@aHoverColor, 15%);
@tableTrHoverBgDark: fade(@aHoverColor, 25%);
// 表格圆角
// @tableBorderRadius: 0px;
// @tableBorderRadiusXC: 0px;
// 表格背景
@tableThColor: var(--d-fc-a);
@tableThBackground: inherit;
// 表格单元格阴影
@tableFirstThBoxShadow: none;
@tableThBoxShadow: 0 -1px 0 var(--tbl-cell-bd);
@tableThRepeaterBoxShadow: 0 -@tblBdWidth 0 var(--tbl-h-bd);
@tableFirstTdBoxShadow: 0 -@tblBdWidth 0 0 var(--tbl-h-bd);
@tableTdBoxShadow: 0 -1px 0 0 var(--tbl-cell-bd);

// 封面、封底文字位置及对齐方式
@coverTextAlign: left;
@coverTextPadding: 420px 80px 50px;
@coverTextColor: @theme3;
@coverSubColor: @codeBgColor;
@coverUnderlineColor: @coverSubColor;
@coverAuthorColor: @themeBgColor;
@coverOwnerColor: @coverAuthorColor;

@backCoverTextAlign: left;
@backCoverTextPadding: 200px 80px 50px;
@backCoverTextColor: @themeBgColor;

// 封面装饰性文本样式 before
@coverTextBeforeContent: "";
@coverTextBeforePosition: initial;
@coverTextBeforeLeft: initial;
@coverTextBeforeTop: initial;
@coverTextBeforeColor: initial;
@coverTextBeforeFontSize: initial;
@coverTextBeforeFontWeight: initial;
@coverTextBeforeOpacity: initial;
// 封面装饰性文本样式 after
@coverTextAfterContent: "";
@coverTextAfterTextAlign: initial;
@coverTextAfterLeft: initial;
@coverTextAfterTop: @coverTextBeforeTop;
@coverTextAfterRight: initial;
@coverTextAfterColor: @coverTextBeforeColor;
@coverTextAfterFontSize: @coverTextBeforeFontSize;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 0 transparent;
@contrastBorderForCover: 0 0 0 2px rgba(34, 36, 38, 0.2) inset;

// 封面背景设置
@coverBackgroundColor: #EDEDED;
@coverBackgroundImage: var(--thm-c-logo), var(--thm-c-bn-blue), var(--thm-c-bn-green), var(--thm-c-bottom-right), var(--thm-c-top-left);
@coverBackgroundSize: 80px 80px, auto, auto, auto, auto;
@coverBackgroundRepeat: no-repeat;
@coverBackgroundPosition: 80px 80px, bottom left, bottom right, right 625px, top left;

// 封底背景设置
@backCoverBackgroundColor: @coverBackgroundColor;
@backCoverBackgroundImage: var(--thm-c-logo), var(--thm-c-top-right);
@backCoverBackgroundSize: @coverBackgroundSize;
@backCoverBackgroundRepeat: no-repeat;
@backCoverBackgroundPosition: 80px 80px, right 200px;

// 文档扩展区域背景
@docExtBackgroundImage: var(--thm-doc-ext-bg), var(--thm-c-bottom-right);
@docExtBackgroundSize: auto, auto;
@docExtBackgroundRepeat: no-repeat, no-repeat;
@docExtBackgroundPosition: left top, bottom 100px right;
@docExtBackgroundFilter: blur(5px);

// 封面、封底素材资源
:root {
    --thm-c-logo: url("");
    --thm-c-bottom-right: url("");
    --thm-c-top-left: url("");
    --thm-c-bn-blue: url("");
    --thm-c-bn-green: url("");
}

@import "../base";

// 生成指定风格的徽章样式
.genBadgeStyle(cap);

// 生成 GSA 样式
.genGSA_simple();
